package com.sl.au.service;

import com.sl.au.entity.Goods;
import com.sl.au.repository.GoodsRepository;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Sort.Direction;

public interface GoodsService extends BaseService {
	GoodsRepository getRepository();

	List<Goods> getPage(int start, int length, String key, String orderName, Direction dir);

	int getPageCount(String key);

	List<Goods> getPageByDate(int start, int length, Date date, String orderName, Direction dir);
}
